package com.midou.administration.service;

import com.midou.administration.bo.uniApp;
import com.midou.administration.entity.Users;
import com.midou.administration.bo.Msg;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
public interface UsersService {
    /*小程序登录功能*/
    Msg login(String name, String pwd);

    /*小程序注册功能*/
    int insert(Users users);

    /*发送手机验证码的方法*/
    Msg send(String phone);

    /*验证验证码是否正确*/
    int verify(String phone,String code);

    /* 验证该账户是否被注册过 */
    Msg repetition(Users users);

    /*修改密码*/
    Msg updPwdById(uniApp app);
}
